<?php
//Representational State Transfer, or REST,

//clients communicate
//with the REST service by HTTP, and the server responds with a representation of the
//resource

$u = 'shlomiphp';
$p = '246810';
$fooTag = "http://{$u}:{$p}@api.del.icio.us/v1/posts/all?tag=php";
var_dump($fooTag);
$bookmarks = new SimpleXMLElement($fooTag, NULL, true);
var_dump($bookmarks);
foreach ($bookmarks->post as $bookmark)
{
	echo '<a href="' . htmlentities($bookmark['href']) . '">';
	echo htmlentities($bookmark['description']);
	echo "</a><br />\n";
}